package com.woniuxy.goods.mapper;


import com.woniuxy.goods.entity.Goods;
import com.woniuxy.goods.vo.BuyGoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper {
    List<Goods> findAll(String name);

    boolean add(Goods goods);

    boolean edit(Goods goods);

    boolean delete(Integer id);

    boolean buy(BuyGoodsVo buyGoodsVo);

    List<BuyGoodsVo> all(String name);

    boolean editGoodsNum(@Param("id") Integer id,@Param("num") Integer num);

    //审核
    boolean editState(Integer id);

}
